package com.pan.graph.xy;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;

public class graphXY {
    protected AtomicInteger x ;
    protected AtomicInteger y ;

    graphXY(){
        x = new AtomicInteger(0);
        y = new AtomicInteger(0);
    }

    graphXY(Supplier<Integer[]> getXY){
        Integer[] xy = getXY.get();
        x = new AtomicInteger(xy[0]);
        y = new AtomicInteger(xy[1]);
    }


}
